Request and response decoupling via pluggable transports in a service oriented pipeline architecture for a request response message exchange

ABSTRACT

A method, system, and computer-readable medium are described herein. An embodiment may read a configuration file. The configuration file may specify a first stage that specifies processing of a protocol-agnostic portion of a message. The embodiment may then add, by one or more processors, the first stage to a processing pipeline, where the processing pipeline is configured to process received messages according to the first stage and a second stage. The second stage is a stage of the processing pipeline that specifies processing of a protocol-specific portion of the message. The processing pipeline being further configured to transport the processed message to a service via a transport mechanism.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No.13/709,800, filed on Dec. 10, 2012, which is a continuation of U.S.non-provisional application Ser. No. 12/346,742, filed on Dec. 30, 2008,which are incorporated herein by reference in their entirety.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains materialthat is subject to copyright protection. The copyright owner has noobjection to the facsimile reproduction by anyone of the patent documentor the patent disclosure, as it appears in the Patent and TrademarkOffice patent files or records, but otherwise reserves all copyrightrights whatsoever. The following notice applies to the software and dataas described below and in the drawings that form a part of thisdocument: Copyright 2006-2008, eBay Inc., All Rights Reserved.

BACKGROUND

1. Technical Field

This disclosure relates to methods and systems supporting computing anddata processing systems. More particularly, the disclosure relates toconfiguring a processing pipeline used to process request and responsemessages in a service-oriented architecture.

2. Related Art

In Service Oriented Architecture (SOA), there are typically manycommunicating reusable services that are deployed in several machines.In large-scale enterprises, like eBay, eTrade, or Google for example,there could be thousands of different services deployed in thousands ofmachines. It is most common and efficient for these services tocommunicate with each other. Further, external access is also typicallyprovided for some of these services. In communicating with each other,various different types of communication protocols may be used forefficiently and optimization reasons. Communication between serviceproviders and service consumers can be accomplished using somepre-defined protocol. In the web services case, this protocol can be theSimple Object Access Protocol (SOAP), SOAP is a protocol for exchangingExtensible Mark-up Language (XML)-based messages over computer networks,normally using Hypertext Transport Protocol (HTTP/HTTPS). SOAP oftenforms the foundation layer of the web services protocol stack providinga basic messaging framework upon which abstract layers can be built.There are several different types of messaging patterns in SOAP; but, byfar the most common is the Remote Procedure Call (RPC) pattern, in whichone network node (the client) sends a request message to another node(the server) and the server immediately sends a response message to theclient. In a typical SOA implementation, Service Consumers communicatewith Service Providers using a specific underlying transport protocolHTTP). There are several Message Exchange Patterns (MEP) forinteractions between a service consumer and a service provider. In aRequest-Response MEP, typically the response is sent back using the sametransport the request was sent in. This typically requires the client tohold on to the connection until the response arrives, which could beinefficient and sometimes inconvenient depending on how long theprocessing of the request takes. It would be desirable, in some cases,to have the response come in potentially via a different transport(e.g., Simple Mail Transfer Protocol—SMTP). Further, most conventionalSOA framework products require either use of the same transport forrequests and responses in a request-response MEP, or require use ofdifferent message exchange patterns, such that responses are processedoff-line and communicated via other means. For these reasons, it wouldbe beneficial to decouple request and response processing, includingtheir transports, for a request-response MEP, in a SOA. Additionally itis also beneficial to have the system support plugging in customtransports transparently for both requests and responses.

U.S. Patent Application No. 2005/0223109 describes a system whereinservices such as product services, real-time services, and commonservices are deployed in a services oriented architecture. Theseservices may, for example, be deployed for use in a variety ofenterprise data integration functions.

U.S. Patent Application No. 2007/0011126 describes a service-orientedarchitecture (SOA) and accompanying method. In one embodiment, the SOAincludes one or more service requesters coupled to one or more serviceproviders via a bus. The bus includes runtime-binding functionality tofacilitate interaction between the one or more service requesters andthe one or more service providers. A registry, which stores informationpertaining to a service provided by the one or more service providers,communicates with one or more service providers and/or requesters andthe bus. In a more specific embodiment, bus includes aService-Integration Bus (SIB) that includes a Service-Factory (SF)module for facilitating implementing the runtime binding functionalityand for selectively invoking the service. Functionality of the SOA isstrategically organized into various tiers and layers, including arequester tier, a provider tier, a business-process services tier, aninfrastructure-services tier, an SIB layer, a persistence layer, and soon.

U.S. Patent Application No. 2005/0267947 describes a system including aservice bus, which can act as an intermediary between a client and aservice. Messages to the service bus arrive on a transport and can beprocessed to determine a destination to route and/or publish the messageto, a transformation to perform on the message, and/or securityprocessing. The message is then sent out on a transport bound for aservice or another service bus. A response to the message can follow aninverse path through the service bus.

Thus, a computer-implemented system and method for decoupling processingof request and response messages supporting different pluggablerespective transports in a service-oriented pipeline architecture isneeded.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments illustrated by way of example and not limitation in thefigures of the accompanying drawings, in which:

FIG. 1 illustrates an example embodiment of an overall messageprocessing system for services with an Application Server.

FIG. 2 illustrates an example embodiment of a server-side runtimeenvironment or Service Provider Framework (SPF), using a messagepipeline.

FIG. 3 illustrates an example embodiment of a client-side runtimeenvironment or Service Invocation Framework (SIF), again using a messagepipeline.

FIG. 4 illustrates another example embodiment of a server-side runtimeenvironment or Service Provider Framework (SPF), using pluggabletransport mechanisms.

FIG. 5 illustrates a portion of code that may be used to configure apluggable transport mechanism in a particular embodiment.

FIG. 6 illustrates a portion of code that may be used to specify the useof a particular pluggable transport mechanism in a particularembodiment.

FIG. 7 illustrates a processing flow diagram for an example embodiment.

FIG. 8 shows a diagrammatic representation of a machine in the form of acomputer system within which a set of instructions, for causing themachine to perform any one or more of the methodologies discussedherein, may be executed, according to an example embodiment.

DETAILED DESCRIPTION

In the following description, for purposes of explanation, numerousspecific details are set forth in order to provide a thoroughunderstanding of some example embodiments. It will be evident, however,to one of ordinary skill in the art that the present invention may bepracticed without these specific details.

As described further below, according to various example embodiments ofthe disclosed subject matter described and claimed herein, there isprovided a computer-implemented system and method for decouplingprocessing of request and response messages supporting differentpluggable respective transports in a service-oriented pipelinearchitecture. Various embodiments are described below in connection withthe figures provided herein.

In particular, as depicted in the various figures included herewith, theSOA message processing model is independent of a specific transportmechanism, as transport-specific processing is made pluggable (e.g.transport processing modules can be added or removed without requiring asignificant level of re-design or re-configuration). The decoupling ofrequest and response processing and the ability to plug in customtransports for either of those, allows efficient processing and resourceutilization. Additionally, new transport protocols can be added to theSOA seamlessly without having to change the SOA processing model.

The various embodiments described herein include a SOA framework on apipeline based architecture where requests and responses are processedin separate pipelines. At the end of each pipeline (whether request orresponse) is a Dispatcher, which dispatches the processed message to thedestination. This Dispatcher can be either a request dispatcher or aresponse dispatcher as the case may be. Additionally, the pipeline isabstracted, such that one of the choices provided for the destinationcan be a transport mechanism, as is the case with client side requestdispatcher and server side response dispatcher. Further, a transport anda specific interface associated with the transport, which each transportcan implement, is abstracted. These transports are made available foruse, by specifying them in the service and client configuration files.Thus, additional transports can be written and plugged in, on to anexisting system, without knowing anything about the framework oraffecting existing services. These transports can be selected forrequest and responses separately. Further, using this de-coupled andpluggable transports architecture, we can implement efficient localbinding of services and consumers in the same Java Virtual Machine (JVM)at runtime through simple configuration changes. This is achievedthrough implementing what is called a ‘Local Transport’, which is yetanother transport implementation that follows the same transportinterface, but actually directly hands off the request to the serverside request pipeline, without a physical transport being involved. Thisis a highly desirable thing to have in a large scale distributedcomputing environment, such as eBay.

Referring to FIG. 1, a diagram illustrates an example embodiment of acomputer-implemented system for processing messages in aservice-oriented pipeline architecture. In the example applicationserver system 100 illustrated, synchronous or asynchronous messages arereceived and sent from system 100 either via a staged event-drivenarchitecture (SEDA) interface 102 or a servlet interface 104 fortransferring synchronous data streams. The staged event-drivenarchitecture (SEDA) interface 102 decomposes a complex, event-drivensoftware application into a set of stages connected by queues. Thisdesign avoids the high overhead associated with thread-based concurrencymodels, and decouples event and thread scheduling from applicationlogic. By performing admission control on each event queue, the servicecan be well-conditioned to load, preventing resources from beingovercommitted when demand exceeds capacity. SEDA employs dynamic controlto automatically tune runtime parameters (such as the schedulingparameters of each stage) as well as to manage load, for example, byperforming adaptive load shedding. Decomposing services into a set ofstages also enables modularity and code reuse, as well as thedevelopment of debugging tools for complex event-driven applications.System 100 can also use a Quality of Service (QoS) module 106 to providevarious levels of priority for the incoming message streams. Messageswith higher levels of priority can be dispatched more quickly into theService Provider Framework (SPF) 110 described in more detail below.

A Servlet is an object that receives a request and generates a responsebased on that request. A Servlet container is a specialized web serverthat supports Servlet execution. The Servlet container combines thebasic functionality of a web server with certain Java/Servlet specificoptimizations and extensions, such as an integrated Java runtimeenvironment, and the ability to automatically translate specific UniformResource Locators (URLs) into Servlet requests. Individual Servlets areregistered with a Son/et container, providing the container withinformation about what functionality they provide, and what URL or otherresource locator they will use to identify themselves. The Servletcontainer is then able to initialize the Servlet as necessary anddeliver requests to the Servlet as they arrive. Many containers have theability to dynamically add and remove Servlets from the system, allowingnew Servlets to quickly be deployed or removed without affecting otherServlets running from the same container. Servlet containers are alsoreferred to as web containers or web engines. Servlet interface 104 canbe implemented as a servlet container in a particular embodiment.Servlet interface 104 can process incoming synchronous messages anddispatch the processed messages into the Service Provider Framework(SPF) 110 described in more detail below. SPF 110 can receive messages,typically a service request, and after processing the messages in themanner described below, SPF 110 may dispatch the messages to anappropriate service 111. Prior to being dispatched to services 111, theincoming message can be initially processed by a number of modules in apipelined architecture, each module performing a particular operation onthe received message. These processing modules can include a G11Nprocessing module 112. The term. “G11N” as used herein refers to theoperations of internationalization and localization. In computing,internationalization and localization (also spelled internationalisationand localisation) are means of adapting computer software for non-nativeenvironments, especially other nations and cultures.Internationalization is the conventional process of designing a softwareapplication so that it can be adapted to various languages and regionswithout engineering changes. Localization is the conventional process ofadapting software for a specific region or language by addinglocale-specific components and translating text. Due to their length,the terms are frequently abbreviated to G11N as shown in FIGS. 1-3.Another processing module of SPF 110 can be logging module 114. Loggingmodule 114 is used to record various items of information related to thereceived message for tracking, debugging, and/or archiving purposes.Another processing module of SPF 110 can be rate limiting module 116.Rate limiting module 116 is used to adjust the flow of messages in astream to a pre-defined rate limit or threshold. Application levelcaching module 122 of SPF 110 provides an ability to temporarily storeapplication level information that may be accessed by the applicationmore than once. Application level caching module 122 can provide ahigher level of efficiency because the cached information does not needto be re-acquired through a network access. Security module 120 can beprovided in SPF 110 to enforce a pre-defined security policy withrespect to authentication and authorization. Finally, monitoring module118 can be provided in SPF 110 to enable monitoring of the serviceinvocation, consumption, status and subsequently to enable alertingconditions and monitoring of compliance with service level agreements(SLA's). All these are examples of some of the “handlers” in thepipeline that control the processing of the message. There are a numberof other system level handlers. Service implementers can plug in theirown service-specific handlers as needed. The list and order of handlersin the pipeline can be configured and customized as necessary, thusproviding a true pluggable pipeline architecture with improvedflexibility.

Messages received by system 100 can be configured for a variety ofcommunication protocols. Although many SOA implementations use SOAP as acommunications protocol, particular embodiments of system 100 can beused with a communication or messaging protocol that is either aproprietary protocol or some other standard messaging protocol otherthan SOAP. Most communication protocols for use with SOAimplementations, whether SOAP or another protocol, typically use acommon basic messaging structure. In general, this messaging structureconsists of a message header followed by a message payload or messagebody. In most cases, the message header contains most of theprotocol-specific data. The message payload typically contains datacontent that is generally common (or can be made common) for allsupported communication protocols. For this reason, particularembodiments can isolate protocol-specific message processing into a setof relatively compact protocol-specific message processors one for eachprotocol supported by system 100. As will be described in more detailbelow, the protocol-specific message processors can be ‘plugged in’ oradded to the system 100 architecture without a significant level ofre-design or re-configuration of the system. Portions of the incomingmessage that are common to all supported protocols can be efficientlyprocessed in a message pipeline of SPF 110 as described below. Becausethe portions of the incoming message processed by the message pipelineof SPF 110 are protocol-agnostic (i.e. not protocol specific), theinsertion of a new or different protocol-specific message processor doesnot affect (and therefore does not require modification to) the messagepipeline of SPF 110. In this manner, the embodiments described hereincan support a variety of communication protocols in an SOAimplementation without causing system re-designs or redundancies. Thesepluggable protocol processors can be registered in a configuration file.In this manner, various pluggable protocol processors can beconveniently added (i.e. plugged into) or removed from the messagepipeline of SPF 110 without significant effort.

Referring now to FIG. 2, a particular example embodiment of aserver-side runtime environment or Service Provider Framework (SPF) 200is illustrated. SPF 200 can receive incoming messages from a requesterserver via a framework servlet 205. The incoming messages can be aserver request for a service supported by the SOA. Messages received bySPF 200 can be configured for a variety of different communicationprotocols. Framework servlet 205 can handle the receipt, and queuing ofthe incoming messages, including initialization of appropriate modules.After initial processing, the framework servlet 205 forwards theincoming message to a server message processor 207.

Server Message Processor (SMP) 207 is the main driver for processing theincoming message. At its initialization time, SMP 207 reads all theservice configuration files 209 and initializes the appropriate modules,service implementation instances, and any, special handlers, etc.Handlers are processing logic components that are plugged into thepipeline in the manner described above. The handlers act on the message,typically just the header portion of the message. Examples of thesehandlers include security, logging, etc. as shown in FIG. 1 anddescribed above. Service configuration files 209, in a particularexample embodiment, are hierarchical and consist of three levels Global,group, and instance specific. The global configuration file is used toconfigure things that are common to all services in the deployedenvironment. The group level configuration file is used to configurethings that are common to a group of services (e.g., a specific domainlike Search or Trading etc.). The Instance specific configuration fileis used to configure things that are specific only to a particularservice. The configuration system of SMP 207 allows configuration ofmuch of the functionality provided by system 200. For example, handlers,desired data formats, and protocol processors can all be configured bySMP 207. The SMP 207 manages the processing of the received messagethrough several different, but symmetric processing steps. Theseprocessing steps include: processing a request message using the InPipeline 212, dispatching the processed request message through arequest dispatcher 216, processing a response message using the OutPipeline 214, and dispatching the processed response message through aresponse dispatcher 218. At each of these steps, the appropriateprotocol processor that matches (e.g. is compatible with) the protocolof the incoming message, is also invoked. If any errors occur at anystate of processing, the processing flow is intercepted by the ServerMessage Processor (SMP) 207 and an appropriate error message isreturned. The error message can be sent through the Out Pipeline 214 andresponse dispatcher 218. Thus, SMP 207 is the main driver for themessage processing performed in system 200.

As part of the processing operations performed by the server messageprocessor 207, the message header of the incoming message can be decodedto determine the particular protocol for which the incoming message iscoded (or compatible with). Once the specific protocol corresponding tothe incoming message is determined, a corresponding one of theprotocol-specific-processors 210 can be activated to operate upon theheader of the incoming message of the same or compatible protocol type.As mentioned above, the specific protocol processor 210 is invoked ateach of the processing steps performed by the SMP 207. The specificprotocol processor 210 processes the protocol-specific headers (e.g.,SOAP envelope, in the case of SOAP) and a context is maintained toreflect the processed information. This context is also made availableto the pipeline 212, in case any handler wants to took at the context.Once the specific protocol processor 210 returns, then the message ispassed through the input/request pipeline 212. The protocol-agnosticportion of the incoming message (e.g. message payload and transportheaders) is run through the input pipeline 212 for staged processing. Ina particular embodiment, the pipeline 212 can include several stages.For example, a first stage of pipeline 212 can be a logging stage 225for handling logging of the incoming message. Logging stage 225 can beused to generate a record for the received message. A second stage ofpipeline 212 can be an authentication stage 226 for handlingauthentication operations on the incoming message. Various types anddegrees of message authentication can be implemented at this stage. Athird stage of pipeline 212 can be a G11N stage 227 for handling theoperations of internationalization and localization on the incomingmessage. As described above, internationalization and localizationoperations can be used to regionalize a message so appropriate resultsare produced. Other stages can be added to pipeline 212 to enable theinsertion of one or more pluggable processors for handling a variety ofdata formats and for decoding a message payload coded in a particulardata format. It will be apparent to those of ordinary skill in the artupon reading this disclosure that other stages can similarly be added topipeline 212 in which other operations 228 could similarly be performedon the protocol-agnostic portions of the incoming message. Further,because of the pipeline architecture of the described embodiment,various stages of the pipeline can be performed in parallel therebyincreasing efficiency of the system 100.

Once the protocol-agnostic portion of the incoming message is processedby each of the stages of pipeline 212, the message can be dispatched toa corresponding service implementation module 220 via a requestdispatcher 216. At the point where the incoming message is passed to therequest dispatcher 216, de-serialization of the message payload isperformed, if de-serialization has not already been performed by one ofthe stages in pipeline 212. It is beneficial to push de-serialization ofthe message payload to the later stages of processing; because,de-serialization can be a time-consuming and expensive process. Theservice implementation module 220 can then perform the requested servicebased on the service request.

As the service implementation module 220 generates output in response tothe request for service, server message processor 207 can performpost-processing on the protocol-agnostic portion of the output datausing an output pipeline 214. In a manner similar to input pipeline 212,output pipeline 214 can be divided into stages, each stage performing anoperation on the protocol-agnostic portion of the output data. Once theprotocol-agnostic portion of the output data is processed by each of thestages of pipeline 214, the protocol-specific portion of the output datais processed by the one of the protocol-specific processors 210. At thispoint, the output message, which can either be an output data messagegenerated in response to the service request or an error message, can bedispatched to a transport module 222 via the response dispatcher 218.Transport module 222 can deliver the output message to a servicerequester via a selected transport. In the case of a synchronouscommunication, the transport module may simply return to the SMP 207,which in turn returns the response to the servlet container.

Referring now to FIG. 3, a particular example embodiment of aclient-side runtime environment or Service Invocation Framework (SIF)300 is illustrated. SIF 300 can receive incoming messages from a clientapplication requester 305 via an SIF application programming interface(API) 306 or through a pre-generated proxy. The incoming messages can bea client request for a service supported by the SOA. A client messageprocessor 307 receives the incoming message either way.

The Client Message Processor (CMP) 307, in a particular exampleembodiment, is the main driver for processing the outgoing requestmessage and for handling the received response. This is very muchequivalent to the SMP 207 on the server side. The CMP 307 performsprocessing operations similar to the SMP 207; however, the CMP 307operates on the client side. These processing operations, as describedabove, include running the request message through the request pipeline(Out pipeline 312), request dispatcher 316, response pipeline (Inpipeline 314) and response dispatcher 318. Similar to the processingperformed on the server side, an appropriate protocol-specific processor310 is also invoked at each of these processing steps to formulate arequest message that contains the selected protocol-specific envelope.Similarly, an appropriate protocol-specific processor 310 is alsoinvoked for processing of the protocol-specific envelope in the responsemessage as well. Again, similar to the server side, the client side alsouses a hierarchy of configuration files, such as global, group andinstance-specific configurations. As described above, the CMP 307 isresponsible for managing these configurations.

As part of the processing operations performed by the client messageprocessor 307, the message header of the outgoing message needs to beencoded to reflect the selected protocol. To do this, a correspondingone of the protocol-specific message processors 310 is activated toencode the header of the outgoing message of the same or compatibleprotocol type. Once the specific protocol processor 310 returns, theoutgoing message is run through the request pipeline (Out pipeline 312)for staged processing of the protocol-agnostic portion of the message.In a particular embodiment, the pipeline 312 can include several stages.For example, a first stage of pipeline 312 can be a logging stage 325for handling logging of the incoming message. Logging stage 325 can beused to generate a record for the received message. A second stage ofpipeline 312 can be an authentication stage 326 for inserting thesecurity credentials, authentication coding, and the like. As manystages can be added to pipeline 312 as necessary to enable customizationof message processing. In fact, every portion of processing logic can beadded as a stage (also referred to as a Handler) in the pipeline 312.Further, because of the pipeline architecture of the describedembodiment, various stages of the pipeline can be performed in parallelthereby increasing efficiency of the system 100.

Once the protocol-agnostic portion of the outgoing message is processedby each of the stages of pipeline 312, the request message is dispatchedto a transport factory module 320 via a request dispatcher 316. Therequest dispatcher 316 serializes the outgoing message into the wiredata format that is selected/configured, before handing off the messageto the transport factory module 320. The transport factory module 320delegates transport of the message via one of a plurality of pluggabletransport processors 322. A particular embodiment can offer support fora plurality of transport modes and protocols, such as a local transport(useful when the client and server are deployed in the same Java VirtualMachine—JVM), Hypertext Transport Protocol (HTTP), Simple Mail TransferProtocol (SMTP), and the like. The transport factory module 320 sendsthe request message to the server via the respective one of thepluggable transport processors 322. The particular pluggable transportprocessor 322 chosen for transport of the request message can beconfigured by the CMP 307. It will be apparent to those of ordinaryskill in the art upon reading this disclosure that other specifictransport modes/protocols can similarly be added to transport factory320 to enable transport of the processed request message in a variety ofways.

As the service implementation (on the server side) generates output inresponse to the request for service, the transport factory module 320receives this response and passes control to the client messageprocessor 307. Client message processor then invokes the appropriateprotocol-specific processor 310 for processing the protocol-specificportion of the response message. The CMP 307 then runs the responsemessage through the response pipeline (In pipeline) 314. In a mannersimilar to request pipeline 312, response pipeline 314 is also dividedinto stages, each stage performing an operation on the protocol-agnosticportion of the incoming response data. At this point, the incomingresponse message, which can be output data in response to a servicerequest, is dispatched to a response dispatcher 318. Additionally, theclient message processor 307 can send a response to the clientapplication requester 305 via the SIF API 306.

FIG. 4 illustrates another example embodiment of the server-side runtimeenvironment or Service Provider Framework (SPF) 400. As shown in FIG. 4,SPF 400 includes much of the same structure as shown in FIG. 2 anddescribed above. However, in the example embodiment shown in FIG. 4, SPF400 includes a transport factory 420 coupled to response dispatcher 418.In this embodiment, the response message is dispatched to the transportfactory module 420 via the response dispatcher 418. The responsedispatcher 418 serializes the outgoing message into the wire data formatthat is selected/configured, before handing off the message to thetransport factory module 420. The transport factory module 420 delegatestransport of the message via one of a plurality of pluggable transportprocessors 422. A particular embodiment can offer support for aplurality of transport modes and protocols, such as a custom transport(useful when the client and server are deployed in the same environmentand need an efficient and proprietary protocol)), Hypertext TransportProtocol (HTTP), Mail Transfer Protocol (SMTP), and the like. Thetransport factory module 420 sends the response message to the requestervia the respective one of the pluggable transport processors 422. Theparticular pluggable transport processor 422 chosen for transport of theresponse message can be configured by the Server Message Processor (SMP)407. It will be apparent to those of ordinary skill in the art uponreading this disclosure that other specific transport modes/protocolscan similarly be added to transport factory 420 to enable transport ofthe processed response message in a variety of ways.

Thus, as described above in connection with FIGS. 3 and 4, both theserver-side runtime environment and the client-side runtime environmentcan be provided with a transport factory including a plurality ofpre-configured and selectable transport mechanisms. The informationabout the desired response transport can be sent with the message overthe wire in the request message, indicating to the server what transportshould be used for response. If such a transport is not available on theserver side for sending the response, based on the client configuration(hard or soft), either the request is rejected or the response is sentback on the same transport as the request. If a request goes out via onetransport, say transport 1, and the response comes back via a differenttransport, say transport 2, then on the client side, the equivalentreceiving transport 2 needs to be configured and listening for theresponse as well. Additional pluggable transports can be implemented,plugged in and configured without altering the base SOA framework andhence without affecting any existing clients and services. Newtransports can be added to the client-side environment by using a codesample shown in. FIG. 5. Plugging in transports at the server side issimilar to that for the client side as shown in FIG. 5. The pluggabletransport configuration information can be specified at the client sidein a client-config.xml file. The pluggable transport configurationinformation can be specified at the server side in a service-config.xml.

FIG. 5 illustrates a portion of code that may be used to configure apluggable transport mechanism in a particular embodiment.

The response transport, as desired by a client and sent across in therequest message, is automatically selected for response on the serverside assuming the selected transport is available) by going through thetransport factory as shown. If the selected response transport is HTTP,then the response simply amounts to a return to the servlet container,which handles the HTTP response. If the client selects, “LocalTransport”as a pluggable transport mechanism, then this selected transportmechanism is equivalent to using no physical transport and making anin-JVM call (i.e., a local java call). In a Local Transport, there isprovided an option to skip serialization/deserialization foroptimization purposes.

FIG. 6 illustrates a portion of code that may be used to specify the useof a particular pluggable transport mechanism in a particularembodiment.

FIG. 7 illustrates a processing flow diagram for an example embodiment.In the embodiment 510 shown, an apparatus for processing messages usingpluggable transport processors in a service-oriented pipelinearchitecture performs the processing operations of: receiving a messagehaving coded therein information identifying a desired pluggabletransport mechanism for a request and/or a response (processing block515); processing the message through a message processing pipeline(processing block 520); dispatching the processed message to adispatcher (processing block 525); determining if the desired pluggabletransport mechanism is available (processing block 530); activating thedesired pluggable transport mechanism, if the desired pluggabletransport mechanism is available (processing block 535); andtransporting the processed message via the desired pluggable transportmechanism processing block 540).

FIG. 8 shows a diagrammatic representation of a machine in the exampleform of a computer system 700 within which a set of instructions, forcausing the machine to perform any one or more of the methodologiesdiscussed herein, may be executed. In alternative embodiments, themachine operates as a standalone device or may be connected (e.g.,networked) to other machines. In a networked deployment, the machine mayoperate in the capacity of a server or a client machine in client-servernetwork environment, or as a peer machine in a peer-to-peer (ordistributed) network environment. The machine may be a server computer,a client computer, a personal computer (PC), a tablet PC, a set-top box(STB), a Personal Digital Assistant (PDA), a cellular telephone, a webappliance, a network router, switch or bridge, or any machine capable ofexecuting a set of instructions (sequential or otherwise) that specifyactions to be taken by that machine. Further, while a single machine isillustrated, the term “machine” shall also be taken to include anycollection of machines that individually or jointly execute a set (ormultiple sets) of instructions to perform any one or more of themethodologies discussed herein.

The example computer system 700 includes a processor 702 (e.g., acentral processing unit (CPU), a graphics processing unit (GPU), orboth), a main memory 704 and a static memory 706, which communicate witheach other via a bus 708. The computer system 700 may further include avideo display unit 710 (e.g., a liquid crystal display (LCD) or acathode ray tube (CRT)). The computer system 700 also includes an inputdevice 712 (e.g., a keyboard), a cursor control device 714 (e.g., amouse), a disk drive unit 716, a signal generation device 718 (e.g., aspeaker) and a network interface device 720.

The disk drive unit 716 includes a machine-readable medium 722 on whichis stored one or more sets of instructions (e.g., software 724)embodying any one or more of the methodologies or functions describedherein. The instructions 724 may also reside, completely or at leastpartially, within the main memory 704, the static memory 706, and/orwithin the processor 702 during execution thereof by the computer system700. The main memory 704 and the processor 702 also may constitutemachine-readable media. The instructions 724 may further be transmittedor received over a network 726 via the network interface device 720.

Applications that may include the apparatus and systems of variousembodiments broadly include a variety of electronic and computersystems. Some embodiments implement functions in two or more specificinterconnected hardware modules or devices with related control and datasignals communicated between and through the modules, or as portions ofan application-specific integrated circuit. Thus, the example system isapplicable to software, firmware, and hardware implementations. Inexample embodiments, a computer system (e.g., a standalone, client orserver computer system) configured by an application may constitute a“module” that is configured and operates to perform certain operationsas described herein. In other embodiments, the “module” may beimplemented mechanically or electronically. For example, a module maycomprise dedicated circuitry or logic that is permanently configured(e.g., within a special-purpose processor) to perform certainoperations. A module may also comprise programmable logic or circuitry(e.g., as encompassed within a general-purpose processor or otherprogrammable processor) that is temporarily configured by software toperform certain operations. It will be appreciated that the decision toimplement a module mechanically, in the dedicated and permanentlyconfigured circuitry, or in temporarily configured circuitry (e.g.configured by software) may be driven by cost and time considerations.Accordingly, the term “module” should be understood to encompass atangible entity, be that an entity that is physically constructed,permanently configured (e.g., hardwired) or temporarily configured(e.g., programmed) to operate in a certain manner and/or to performcertain operations described herein. While the machine-readable medium722 is shown in an example embodiment to be a single medium, the term“machine-readable medium” should be taken to include a single medium ormultiple media (e.g., a centralized or distributed database, and/orassociated caches and servers) that store the one or more sets ofinstructions. The term “machine-readable medium” shall also be taken toinclude any medium that is capable of storing, encoding or carrying aset of instructions for execution by the machine and that cause themachine to perform any one or more of the methodologies of the presentdescription. The term “machine-readable medium” shall accordingly betaken to include, but not be limited to, solid-state memories, opticaland magnetic media, and carrier wave signals. As noted, the software maybe transmitted over a network using a transmission medium. The term“transmission medium” shall be taken to include any medium that iscapable of storing, encoding or carrying instructions for transmissionto and execution by the machine, and includes digital or analogcommunications signal or other intangible medium to facilitatetransmission and communication of such software.

The illustrations of embodiments described herein are intended toprovide a general understanding of the structure of various embodiments,and they are not intended to serve as a complete description of all theelements and features of apparatus and systems that might make use ofthe structures described herein. Many other embodiments will be apparentto those of ordinary skill in the art upon reviewing the abovedescription. Other embodiments may be utilized and derived therefrom,such that structural and logical substitutions and changes may be madewithout departing from the scope of this disclosure. The figuresprovided herein are merely representational and may not be drawn toscale. Certain proportions thereof may be exaggerated, while others maybe minimized. Accordingly, the specification and drawings are to beregarded in an illustrative rather than a restrictive sense.

Thus, a computer-implemented system and method for decoupling processingof request and response messages supporting different pluggablerespective transports in a service-oriented pipeline architecture aredisclosed. While the present invention has been described in terms ofseveral example embodiments, those of ordinary skill in the art willrecognize that the present invention is not limited to the embodimentsdescribed, but can be practiced with modification and alteration withinthe spirit and scope of the appended claims. The description herein isthus to be regarded as illustrative instead of limiting.

What is claimed is:
 1. A method comprising: reading a configurationfile, the configuration file specifying a plurality of pluggablemessage-protocol-specific protocol processors and a plurality ofpluggable transport mechanisms available for use; receiving data to besent as payload of an outgoing message, the payload beingmessage-protocol-agnostic; processing the payload in a processingpipeline, wherein the processing pipeline includes a plurality of stagesfor processing the payload of the outgoing message; invoking one of thepluggable message-protocol-specific protocol processors to formulate aprotocol-specific header of the outgoing message; dispatching theoutgoing message comprising the processed payload and the header to atransport factory comprising the plurality of pluggable transportmechanisms; and transporting the outgoing message via a selected one ofthe pluggable transport mechanisms.
 2. The method of claim 1, whereinthe processing pipeline, the plurality of pluggablemessage-protocol-specific protocol processors, and the transport factoryare provided in a client-side environment.
 3. The method of claim 1,wherein the processing pipeline, the plurality of pluggablemessage-protocol-specific protocol processors, and the transport factoryare provided in a server-side environment.
 4. The method of claim 1,wherein the selected transport mechanism is a Simple Mail TransferProtocol (SMTP).
 5. The method of claim 1, wherein the selectedtransport mechanism uses a Local Transport.
 6. The method of claim 1,wherein the plurality of transport mechanisms includes at least one of aLocal Transport mechanism, a Hypertext Transport Protocol (HTTP)mechanism, or a Simple Mail Transfer Protocol (SMTP) mechanism.
 7. Asystem comprising: one or more hardware processors and memory storingprocessor-executable instructions, the hardware processors implementing,by execution of the instructions: a message processor; a processingpipeline; a plurality of message-protocol-specific protocol processors;and a transport factory comprising a plurality of pluggable transportmechanisms: wherein the message processor is configured to: read aconfiguration file specifying the plurality of pluggablemessage-protocol-specific protocol processors and the plurality ofpluggable transport mechanisms; receive data to be sent as payload of anoutgoing message and cause processing of the payload by the processingpipeline, the payload being message-protocol-agnostic, wherein theprocessing pipeline includes a plurality of stages for processing thepayload of the outgoing message; invoke one of the pluggablemessage-protocol-specific protocol processors to formulate aprotocol-specific header of the outgoing message; and cause the outgoingmessage comprising the processed payload and the header to be dispatchedto the transport factory for transport via a selected one of thepluggable transport mechanisms.
 8. The system of claim 7, wherein themessage processor, the processing pipeline, the plurality of pluggablemessage-protocol-specific protocol processors, and the transport factoryare provided in a client-side environment.
 9. The system of claim 7,wherein the message processor, the processing pipeline, the plurality ofpluggable message-protocol-specific protocol processors, and thetransport factory are provided in a server-side environment.
 10. Thesystem of claim 7, wherein the selected transport mechanism is a SimpleMail Transfer Protocol (SMTP).
 11. The system of claim 7, wherein theselected transport mechanism is a Local Transport mechanism.
 12. Thesystem of claim 7, wherein the plurality of transport processorsmechanisms includes at least one of a Local Transport mechanismprocessor, a Hypertext Transport Protocol (HTTP) mechanism processor, ora Simple Mail Transfer Protocol (SMTP) mechanism.
 13. The system ofclaim 12, wherein the processed message is a request message sent from aclient or a response message sent from a service.
 14. A non-transitorycomputer-readable medium storing executable instructions thereon, which,when executed by a processor, cause the processor to perform operationscomprising: reading a configuration file, the configuration filespecifying a plurality of pluggable message-protocol-specific protocolprocessors and a plurality of pluggable transport mechanisms availablefor use; receiving data to be sent as payload of an outgoing message,the payload being message-protocol-agnostic; processing the payload in aprocessing pipeline, wherein the processing pipeline includes aplurality of stages for processing the payload of the outgoing message;invoking one of the pluggable message-protocol-specific protocolprocessors to formulate a protocol-specific header of the outgoingmessage; dispatching the outgoing message comprising the processedpayload and the header to a transport factory comprising the pluralityof pluggable transport mechanisms; and transporting the outgoing messagevia a selected one of the pluggable transport mechanisms.
 15. The methodof claim 1, wherein the selected transport mechanism for the outgoingmessage is configured by a message processor managing the processing anddispatch of the outgoing message.
 16. The method of claim 2, wherein thedata to be sent as the payload of the outgoing message comprises arequest for service.
 17. The method of claim 3, wherein the data to besent as the payload of the outgoing message is generated by a serviceimplementation module based on an incoming message comprising a requestfor service, the incoming request message specifying the pluggabletransport mechanism selected for the outgoing message.
 18. The system ofclaim 7, wherein the selected transport mechanism for the outgoingmessage is configured by the message processor.
 19. The system of claim8, wherein the data to be sent as the payload of the outgoing messagecomprises a request for service.
 20. The system of claim 9, furthercomprising a service implementation module generating the data to besent as the payload of the outgoing message based on an incoming messagecomprising a request for service, the incoming request messagespecifying the pluggable transport mechanism selected for the outgoingmessage.